
import request from '@/libs/request'

/**
 * @description 员工列表
 */
export function storeStaff(data) {
    return request({
        url: 'merchant/store_staff',
        method: 'get',
        params: data
    })
}

/**
 * @description 新增编辑员工
 */
export function editstoreStaff(id,data) {
    return request({
        url: `merchant/store_staff/save/${id}`,
        method: 'post',
        params: data
    })
}

/**
 * @description 删除员工
 */
export function delstoreStaff(id) {
    return request({
        url: `merchant/store_staff/del/${id}`,
        method: 'get',
    })
}

/**
 * @description 设置员工启用禁用
 */
export function setstoreStaff(id,is_show) {
    return request({
        url: `merchant/store_staff/set_show/${id}/${is_show}`,
        method: 'get',
    })
}

/**
 * @description 指定员工接单
 */
export function binsstoreStaff(data) {
    return request({
        url: `manage/bind_staff_order`,
        method: 'post',
        params: data
    })
}

/**
 * @description 设置员工启用禁用
 */
export function setStaff(id,is_show) {
    return request({
        url: `merchant/store_staff/set_show/${id}/${is_show}`,
        method: 'get',
    })
}


